<template>
  <div class="moackPage2">
    <div>
      <el-button @click="HClick(true)">params</el-button>
      <el-button @click="HClick(false)">noParams</el-button>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      dataService: null
    };
  },
  methods: {
    HClick(value) {
      let that = this;
      let data = {};
      if (value) {
        data = {
          compCode: 1,
          searchContent: encodeURIComponent('北京')
        };
      } else {
        data = {
          compCode: '',
          searchContent: ''
        };
      }
      let config = {
        mock: true,
        url: that.$VConfig.inters.dataInters.BPManage.supplier
          .haveInSameBidProject,
        // url: that.$VConfig.inters.dataInters.BPManage.supplier.historyBidCount,
        data,
        success(res) {
          console.log(res);
        },
        always() {}
      };
      new this.$VDataService(config).request();
    }
  }
};
</script>

<style lang="less" scoped></style>
